package com.web.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
//开启mybatis缓存时需要序列化对象
public class Person implements Serializable {
    int id;
    String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
